#ifndef DlgCard_H
#define DlgCard_H
#include "ui_DlgCard.h"
#include "ccard.h"
#include <qwt_plot_curve.h>
#include "hstatus.h"
#include "vstatus.h"
#include "chanelvolt.h"
class QwtPlotZoomer;
const int PLOT_SIZE = 60000;      // 0 to 200
class DlgCard : public QDialog
{
    Q_OBJECT

public:
    DlgCard(QWidget *parent = 0);
    ~DlgCard();
public slots:
//	void buttonclickslot1();
//	void exitclick();
    void stop();
    void start();
    void pause();
    void on_menuFile_triggered(QAction* a);
    void on_actionSetup_triggered();
    void on_actionAutoScale_triggered();
    void on_actionExit_triggered();
    void timerEvent(QTimerEvent *);
    void gainChange();
    void doClick(int row,int col);
    void daClick();
    void chanelClick(int row,int col);
private:
    CCard *card;
    Ui::DlgCardClass ui;
    long d_n;
    long addr;
    QwtPlotCurve *cLeft[16];
//    double d_x[PLOT_SIZE];
//    double d_z[PLOT_SIZE];
    int d_interval; // timer in ms
    int d_timerId;
    ChanelVolt chanelV[16];
    double * mytimeArr;
    QwtPlotZoomer *d_zoomer;
    Vstatus *ad;
    Hstatus *mydo;
};

#endif // DlgCard_H
